/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once

#include "UI/Widget.h"
#include "UI/ui绘制模板.h"
#include "UI/布局.h"


class C_按钮 : public C_Widget {

public:
	C_按钮(S_UI渲染环境* ctx, const std::u16string& 标题 = u"");
	~C_按钮();

	//ui_绘制模板_预设图形	m_背景绘制;
	//ui_绘制模板_行文本绘制	m_字符绘制;
	//ui_绘制模板_图标		m_图标绘制;

	S_Surface2D* m_背景;
	S_Surface2D* m_背景2;
	S_Surface2D* m_标签;
	S_Surface2D* m_图标;

	bool	m_绘制标题;
	bool	m_绘制图标;

	//S_Props m_Op;

	void f_bind属性(S_Props& p);

};







class C_开关 : public C_Widget {

public:
	C_开关(S_UI渲染环境& ctx);
	~C_开关();

	std::u16string m_ICO_A;
	std::u16string m_ICO_B;

	bool	m_值;
	void f_bind属性(S_Props& p);
};





class C_标签 : public C_Widget {

public:
	C_标签(S_UI渲染环境& ctx);
	~C_标签();

	std::u16string m_标签文本;

	//ui_绘制模板_预设图形	m_背景绘制;
	//ui_绘制模板_行文本绘制	m_字符绘制;

	S_Props m_Value;

	S_Props f_getProp() { return m_Value; }
};




class C_工具条 : public C_Widget {

public:
	C_工具条(S_UI渲染环境& ctx);
	~C_工具条();


};








